#include <stdio.h>

//n*n乘法表

int main() {
    int x = 1;
    int y = 1;
    int n = 0;
    scanf("%d", &n);
    for (y = 1; y <= n; y++) {
        for (x = 1; x <= y; x++) {
            printf("%d*%d=%-4d\t", x, y, x * y);
        }
        printf("\n");
    }
    return 0;
}